#!/usr/bin/env python

import os
import sys

from bsddb import db

def print_versions():
    print
    print '-=' * 38
    print db.DB_VERSION_STRING
    print 'bsddb.db.version():   %s' % (db.version(), )
    print 'bsddb.db.__version__: %s' % db.__version__
    print 'bsddb.db.DB_VERSION_STRING: %s' % db.DB_VERSION_STRING
    print 'bsddb.db.version.major: %d' % db.DB_VERSION_MAJOR
    print 'bsddb.db.version.minor: %d' % db.DB_VERSION_MINOR
    print 'bsddb.db.version.patch: %d' % db.DB_VERSION_PATCH
    print 'bsddb.db.cvsid:       %s' % db.cvsid
    print 'python version:       %s' % sys.version
    print 'My pid:               %s' % os.getpid()
    print '-=' * 38


if	__name__=='__main__' :
	print_versions()

